<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Username')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-username" class="form-control" name="row[username]" type="text" value="{$row.username|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Mobile')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-mobile" class="form-control" name="row[mobile]" type="text" value="{$row.mobile|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Avatar')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-avatar" class="form-control" size="50" name="row[avatar]" type="text" value="{$row.avatar|htmlentities}">
                <span class="msg-box n-right" for="c-avatar"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-avatar"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Gender')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select  id="c-gender" data-rule="required" class="form-control selectpicker" name="row[gender]">
                {foreach name="genderList" item="vo"}
                <option value="{$key}" {in name="key" value="$row.gender"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Zodiac')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_select('row[zodiac]',$animal_sign,$row.zodiac)}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Birthday')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-birthday" class="form-control" name="row[birthday]" type="text" value="{$row.birthday|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Constellation')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_select('row[constellation]',$constellation,$row.constellation)}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Education')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_select('row[education]',$degree,$row.education)}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Occupation')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-occupation" class="form-control" name="row[occupation]" type="text" value="{$row.occupation|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Income')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select  id="c-income" class="form-control selectpicker" name="row[income]">
                {foreach name="incomeList" item="vo"}
                <option value="{$key}" {in name="key" value="$row.income"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Character')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-character" class="form-control" name="row[character]" type="text" value="{$row.character|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Height')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-height" class="form-control" name="row[height]" type="number" value="{$row.height|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Weight')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-weight" class="form-control" name="row[weight]" type="number" value="{$row.weight|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Card')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-card" class="form-control" name="row[card]" type="text" value="{$row.card|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Family')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-family" class="form-control" name="row[family]" type="text" value="{$row.family|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Address')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-address" class="form-control" name="row[address]" type="text" value="{$row.address|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('House')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select  id="c-house" class="form-control selectpicker" name="row[house]">
                {foreach name="houseList" item="vo"}
                <option value="{$key}" {in name="key" value="$row.house"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Parents')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select  id="c-parents" class="form-control selectpicker" name="row[parents]">
                {foreach name="parentsList" item="vo"}
                <option value="{$key}" {in name="key" value="$row.parents"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Marry')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select  id="c-marry" class="form-control selectpicker" name="row[marry]">
                {foreach name="marryList" item="vo"}
                <option value="{$key}" {in name="key" value="$row.marry"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Kids')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select  id="c-kids" class="form-control selectpicker" name="row[kids]">
                {foreach name="kidsList" item="vo"}
                <option value="{$key}" {in name="key" value="$row.kids"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Is_car')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select  id="c-is_car" class="form-control selectpicker" name="row[is_car]">
                {foreach name="isCarList" item="vo"}
                <option value="{$key}" {in name="key" value="$row.is_car"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Hobby')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-hobby" class="form-control" name="row[hobby]" type="text" value="{$row.hobby|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Declaration')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-declaration" class="form-control" name="row[declaration]" type="text" value="{$row.declaration|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Age')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-age" class="form-control" name="row[age]" type="number" value="{$row.age|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Is_divorce')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select  id="c-is_divorce" class="form-control selectpicker" name="row[is_divorce]">
                {foreach name="isDivorceList" item="vo"}
                <option value="{$key}" {in name="key" value="$row.is_divorce"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Is_kids')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select  id="c-is_kids" class="form-control selectpicker" name="row[is_kids]">
                {foreach name="isKidsList" item="vo"}
                <option value="{$key}" {in name="key" value="$row.is_kids"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Kids_live')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select  id="c-kids_live" class="form-control selectpicker" name="row[kids_live]">
                {foreach name="kidsLiveList" item="vo"}
                <option value="{$key}" {in name="key" value="$row.kids_live"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Content')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-content" class="form-control" name="row[content]" type="text" value="{$row.content|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Is_age')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-is_age" class="form-control" name="row[is_age]" type="text" value="{$row.is_age|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Is_group')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select  id="c-is_group" class="form-control selectpicker" name="row[is_group]">
                {foreach name="isGroupList" item="vo"}
                <option value="{$key}" {in name="key" value="$row.is_group"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Page_view')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-page_view" class="form-control" name="row[page_view]" type="number" value="{$row.page_view|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Betrothal_gifts')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-betrothal_gifts" class="form-control" name="row[betrothal_gifts]" type="text" value="{$row.betrothal_gifts|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Is_cook')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select  id="c-is_cook" class="form-control selectpicker" name="row[is_cook]">
                {foreach name="isCookList" item="vo"}
                <option value="{$key}" {in name="key" value="$row.is_cook"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Cook_list')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-cook_list" class="form-control" name="row[cook_list]" type="text" value="{$row.cook_list|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Wx')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-wx" class="form-control" name="row[wx]" type="text" value="{$row.wx|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Wxis_show')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[wxis_show]', ['1'=>'展示', '2'=>'隐藏'], $row['wxis_show'])}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Examined')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select  id="c-examined" data-rule="required" class="form-control selectpicker" name="row[examined]">
                {foreach name="examinedList" item="vo"}
                <option value="{$key}" {in name="key" value="$row.examined"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[status]', ['normal'=>__('Normal'), 'hidden'=>__('Hidden')], $row['status'])}
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
